package com.example.service.impl;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.dao.FilmTextDao;
import com.example.model.FilmText;
import com.example.model.query.FilmTextExample;
import com.example.service.FilmTextService;


/**
 * Created on 2017/12/26 18:50
 */
@Service
public class FilmTextServiceImpl implements FilmTextService {

    @Autowired
	private FilmTextDao filmTextDao;

    @Transactional(readOnly = true)
    public FilmText selectByPrimaryKey(Short id) {
        return filmTextDao.selectByPrimaryKey(id);
    }

	@Transactional(readOnly = true)
	public List<FilmText> selectByExample(FilmTextExample q) {
		return filmTextDao.selectByExample(q);
	}

	@Transactional
	public Object insert(FilmText t) {
		return filmTextDao.insert(t);
	}

	@Transactional
	public Object insertSelective(FilmText t) {
		return filmTextDao.insertSelective(t);
	}

	@Transactional
	public Object updateByPrimaryKeySelective(FilmText t) {
		return filmTextDao.updateByPrimaryKeySelective(t);
	}

	@Transactional
	public Object updateByExampleSelective(FilmText t, FilmTextExample q) {
		return filmTextDao.updateByExampleSelective(t, q);
	}

	@Transactional
	public Object updateByExample(FilmText t, FilmTextExample q) {
		return filmTextDao.updateByExample(t, q);
	}

    @Transactional
    public Object updateByPrimaryKey(FilmText t) {
        return filmTextDao.updateByPrimaryKey(t);
    }

	@Transactional(readOnly = true)
	public Long countByExample(FilmTextExample q) {
		return filmTextDao.countByExample(q);
	}

    @Transactional
    public Integer deleteByPrimaryKey(Short id) {
        return filmTextDao.deleteByPrimaryKey(id);
    }



	@Transactional
	public Integer deleteByExample(FilmTextExample q) {
		return filmTextDao.deleteByExample(q);
	}

}
